package loc_enum

// 区域-工程车电子围栏-围栏类型
type locEgnfenceFenceType int

var LocEgnfenceFenceType locEgnfenceFenceType

// 消纳场
func (c *locEgnfenceFenceType) EliminationField() int {
	return 1
}

// 工地
func (c *locEgnfenceFenceType) ConstructionSite() int {
	return 2
}

// 工程
func (c *locEgnfenceFenceType) Egn() int {
	return 3
}

// 重点区域
func (c *locEgnfenceFenceType) KeyArea() int {
	return 4
}

func (c *locEgnfenceFenceType) ToText(value int) string {
	switch value {

	case 1:
		return "消纳场"

	case 2:
		return "工地"

	case 3:
		return "工程"

	case 4:
		return "重点区域"

	}
	return ""
}

func (c *locEgnfenceFenceType) ToValue(text string) int {
	switch text {

	case "消纳场":
		return 1

	case "工地":
		return 2

	case "工程":
		return 3

	case "重点区域":
		return 4

	}
	return 0
}
